@model IEnumerable<LynxWebLog.BlogData>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<div class="table-responsive">
<table class="table table-condensed table-striped">
        <tr>
            <th>
                @Html.DisplayNameFor(model => model.blogid)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.username)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.blogname)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.url)
            </th>
            <th></th>
        </tr>

        @foreach (var item in Model) {
            <tr>
                <td>
                    @Html.DisplayFor(modelItem => item.blogid)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.username)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.blogname)
                </td>
                <td>
                    <a href="@item.url">@item.url</a>
                </td>
                <td>
                    @Html.ActionLink("Edit", "Edit", new { id = item.blogid }) |
                    @Html.ActionLink("Details", "Details", new { id = item.blogid }) |
                    @Html.ActionLink("Delete", "Delete", new { id = item.blogid })
                </td>
            </tr>
        }

    </table>
</div>
